/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.miracleteam.miracle.utils;

import com.miracleteam.miracle.entities.Sanphamcotaicuahang;
import java.util.Map;
import org.apache.tapestry5.OptionModel;

/**
 *
 * @author DangKhoa
 */
public class SanPhamCoTaiCuaHangOptionModel implements OptionModel {

    
    private Sanphamcotaicuahang SPTaiCuaHang;
    public SanPhamCoTaiCuaHangOptionModel(Sanphamcotaicuahang sp)
    {
        this.SPTaiCuaHang=sp;
    }
    public String getLabel() {
        return this.SPTaiCuaHang.getTenHienThiPhiaCuaHang();
    }

    public boolean isDisabled() {
        return false;
    }

    public Map<String, String> getAttributes() {
        return null;
    }

    public Object getValue() {
        //throw new UnsupportedOperationException("Not supported yet.");
        return this.SPTaiCuaHang;
    }
    
}
